#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <string.h>
#include <stdlib.h>

#define num 3

typedef int* pi;
typedef char* pc;
typedef char* pss[];
typedef int(*ptest)(int, int);
typedef ptest(*psignal)(int, ptest);

struct score
{
	int chinese;
	int math;
	int english;
};

struct xr
{
	char name[9];
	char sex[3];
	int age;
	struct score c;
}w1,w2,w3;

struct emp
{
	char name[6];
	int age;
};

int test(int, int);
ptest signal(int, ptest);
int add(int, int);
int sub(int, int);
int mul(int, int);
int Div(int, int);
void Print_struct_xr(struct xr*, char*);
void Print_struct_emp(struct emp*);
int cmp_struct_emp_age_asc(const void*, const void*);
void Swap(char*, char*);
void mppx_qsort(const void*, size_t, size_t, int(*)(const void*, const void*));